package com.retail.shop.enums;

/**
 * @author administrator
 * @Description 系统类型枚举
 * @date 2022 - 10 - 13 22:32:45
 */
public enum ExamineVerifyEnums {

    /**
     * 菜单类型为目录
     */
    UN_EXAMINE_VERIFY(0, "待审核"),

    /**
     * 菜单类型为菜单
     */
    EXAMINE_VERIFIED(1, "审核通过"),
    NOT_EXAMINE_VERIFIED(2, "审核不通过"),

    ;

    private Integer value;

    private String label;

    ExamineVerifyEnums(Integer value, String label) {
        this.value = value;
        this.label = label;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public static String getStatusValues(Integer value) {
        ExamineVerifyEnums[] enums = ExamineVerifyEnums.values();
        for (ExamineVerifyEnums e1 : enums) {
            if (e1.getValue().equals(value)) {
                return e1.getLabel();
            }
        }
        return "";
    }
}
